/*
 * 版权所有 (c) 2022-2099 TBIT。保留所有权利。
 */

package com.tbit.main.service.impl;

import com.tbit.main.controller.interceptor.LoginUserContextHolder;
import com.tbit.main.pojo.VO.RideOrderRefundReqVO;
import com.tbit.main.remote.rpc.UQHttpManager;
import com.tbit.main.service.RefundService;
import org.springframework.cglib.beans.BeanMap;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * 退款 ServiceImpl
 *
 * @author <a href="mailto:li.yao@tbit.com.cn">yao</a>
 * @since 2024/7/9 14:34
 */
@Validated
@Service
public class RefundServiceImpl implements RefundService {

    @Override
    @SuppressWarnings("unchecked")
    public String rideOrderRefund(RideOrderRefundReqVO reqVO) {
        reqVO.setAccountUserId(LoginUserContextHolder.getLoginUserId());
        return UQHttpManager.rideOrderRefund(BeanMap.create(reqVO));
    }
}
